<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        // function fn(){
        //     console.log(arguments);
        // }

        // fn(1,2,3);


        // 箭头函数没有arguments对象
        // let fn = ()=>{
        //     // Uncaught ReferenceError: arguments is not defined
        //     console.log(arguments);
        // }

        // fn(4,5,6);


        // 用rest参数代替
        // function  fn(...arg) {
        //     console.log(arg);
        // }


        let fn = (...arg)=>{
            console.log(arg);
        }

        fn(7,8,9);







    </script>
</body>
</html>